package com.shenfa.service.systemManager.depart.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.shenfa.bean.Depart;
import com.shenfa.dao.systemManager.depart.DepartDao;
import com.shenfa.service.systemManager.depart.DepartService;

public class DepartServiceImpl implements DepartService {

	@Autowired
	private DepartDao departDao;
	public List<Depart> getAll() {
		return departDao.getAll();
	}
	public List<Depart> getAllByOrg(String orgId,int start,int limit) {
		return departDao.getAllByOrg(orgId,start,limit);
	}
	public int queryCount(String orgId) {
		return departDao.queryCount(orgId);
	}
	public void update(Depart depart) {
		departDao.update(depart);
	}
	public void delete(String id) {
		departDao.delete(id);
	}
	public void add(Depart depart) {
		departDao.add(depart);
	}
	public int check(Depart depart) {
		return departDao.checkdep(depart);
	}

}
